<?php

/**
 * FR_Presenter_json
 */
class FR_Presenter_json extends FR_Presenter_common {

    public function __construct(FR_Module $module) {
        parent::__construct($module);
    }

    public function display() {
        $__data = $this->module->getData();
        if (is_array($__data)) {
            header("Content-type: application/json; charset=utf-8");
            echo RJson::arrayToJSON($__data);
        }
    }

    public function __destruct() {
        parent::__destruct();
    }

}
